package com.xli.organ.ou.frameou.entity.dto;

import com.xli.dto.search.SearchDTO;
import com.xli.dto.search.type.QueryType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

@Data
@EqualsAndHashCode(callSuper = true)
public class OuSearchDTO extends SearchDTO {

    @Serial
    private static final long serialVersionUID = 8386472094192283154L;

    @Schema(description = "部门名称")
    @QueryType(value = QueryType.Type.LIKE, field = "ou_name")
    private String ouName;

    @Schema(description = "部门编码")
    @QueryType(value = QueryType.Type.LIKE, field = "ou_code")
    private String ouCode;

    @Schema(description = "上级部门")
    @QueryType(value = QueryType.Type.EQ, field = "pid")
    private String pid;
}
